//
//  ShopEmptyView.m
//  RentTable
//
//  Created by xchuan xchuan on 2024/12/1.
//

#import "ShopEmptyView.h"

@interface ShopEmptyView()

@property (nonatomic, strong) UIImageView *reviewIconView;
@property (nonatomic, strong) UILabel *sumLabel;

@end

@implementation ShopEmptyView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self == [super initWithFrame:frame]) {
        [self setUI];
    }
    return self;
}

- (void)setUI {
    self.reviewIconView = [[UIImageView alloc] init];
    self.reviewIconView.image = [UIImage imageNamed:@"空数据"];
    [self addSubview:self.reviewIconView];
    
    [self.reviewIconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(161 * scaleH);
        make.centerX.mas_equalTo(0);
        make.size.mas_equalTo(CGSizeMake(175 * scaleH, 175 * scaleH));
    }];
    
    self.sumLabel = [[UILabel alloc] init];
    self.sumLabel.text = @"暂无宝贝";
    self.sumLabel.font = [UIFont pingFangSCRegularWithSize:17];
    self.sumLabel.textColor = myRGBHex(0x333333);
    [self addSubview:self.sumLabel];
    
    [self.sumLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.reviewIconView.mas_bottom).offset(40 * scaleH);
        make.centerX.mas_equalTo(0);
        make.height.mas_equalTo(21 * scaleH);
    }];
}

@end
